﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>左侧菜单</title>
<link href="Uimaker/css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="Uimaker/js/jquery.min.js"></script>
<!-- <script language="javascript" src="js/webSocket.js"></script> -->
<script type="text/javascript">
$(function(){	
	//导航切换
	$(".menuson li").click(function(){
		$(".menuson li.active").removeClass("active");
		$(this).addClass("active");
	});
	
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('ul').slideUp();
		if($ul.is(':visible')){
			$(this).next('ul').slideUp();
		}else{
			$(this).next('ul').slideDown();
		}
	});
});
</script>


</head>

<body style="background:#f0f9fd;">

    <!--播放音乐-->
    <audio id="notice">
        <source src="music/notify.mp3" type="audio/mpeg" />
    </audio>

	<div class="lefttop"><span></span></div>
    
    <dl class="leftmenu">
    
    <dd>
    <div class="title">
    <span><img src="Uimaker/images/leftico01.png" /></span>系统设置</div>
    	<ul class="menuson">
        <li  class="active"><cite></cite><a href="MainFrame_index.action" target="rightFrame">首页</a><i></i></li>
        </ul>    
    </dd>
    
	<shiro:hasRole name="admin">
    <dd>
      <div class="title">
        <span><img src="Uimaker/images/leftico01.png" /></span>基础信息管理
      </div>
      <ul class="menuson">
      	<li><cite></cite><a href="College_list" target="rightFrame">学院信息</a><i></i></li>
        <li><cite></cite><a href="User_list" target="rightFrame">用户信息</a><i></i></li>
        <li><cite></cite><a href="Role_list" target="rightFrame">角色信息</a><i></i></li>
        <li><cite></cite><a href="Permission_list" target="rightFrame">权限信息</a><i></i></li>
      </ul>
    </dd>
    </shiro:hasRole>
    
    <dd>
      <div class="title">
        <span><img src="Uimaker/images/leftico03.png" /></span>权限测试
      </div>  
    </dd>
    
    
    </dl>
    
</body>
</html>
